﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000A81 RID: 2689
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class LobbyJoinScRsp : IMessage<LobbyJoinScRsp>, IMessage, IEquatable<LobbyJoinScRsp>, IDeepCloneable<LobbyJoinScRsp>, IBufferMessage
	{
		// Token: 0x170021F5 RID: 8693
		// (get) Token: 0x06007857 RID: 30807 RVA: 0x001418AF File Offset: 0x0013FAAF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<LobbyJoinScRsp> Parser
		{
			get
			{
				return LobbyJoinScRsp._parser;
			}
		}

		// Token: 0x170021F6 RID: 8694
		// (get) Token: 0x06007858 RID: 30808 RVA: 0x001418B6 File Offset: 0x0013FAB6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return LobbyJoinScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170021F7 RID: 8695
		// (get) Token: 0x06007859 RID: 30809 RVA: 0x001418C8 File Offset: 0x0013FAC8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return LobbyJoinScRsp.Descriptor;
			}
		}

		// Token: 0x0600785A RID: 30810 RVA: 0x001418CF File Offset: 0x0013FACF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LobbyJoinScRsp()
		{
		}

		// Token: 0x0600785B RID: 30811 RVA: 0x001418E4 File Offset: 0x0013FAE4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LobbyJoinScRsp(LobbyJoinScRsp other) : this()
		{
			this.fightGameMode_ = other.fightGameMode_;
			this.retcode_ = other.retcode_;
			this.roomId_ = other.roomId_;
			this.memberInfo_ = other.memberInfo_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600785C RID: 30812 RVA: 0x0014193D File Offset: 0x0013FB3D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LobbyJoinScRsp Clone()
		{
			return new LobbyJoinScRsp(this);
		}

		// Token: 0x170021F8 RID: 8696
		// (get) Token: 0x0600785D RID: 30813 RVA: 0x00141945 File Offset: 0x0013FB45
		// (set) Token: 0x0600785E RID: 30814 RVA: 0x0014194D File Offset: 0x0013FB4D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FightGameMode FightGameMode
		{
			get
			{
				return this.fightGameMode_;
			}
			set
			{
				this.fightGameMode_ = value;
			}
		}

		// Token: 0x170021F9 RID: 8697
		// (get) Token: 0x0600785F RID: 30815 RVA: 0x00141956 File Offset: 0x0013FB56
		// (set) Token: 0x06007860 RID: 30816 RVA: 0x0014195E File Offset: 0x0013FB5E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170021FA RID: 8698
		// (get) Token: 0x06007861 RID: 30817 RVA: 0x00141967 File Offset: 0x0013FB67
		// (set) Token: 0x06007862 RID: 30818 RVA: 0x0014196F File Offset: 0x0013FB6F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ulong RoomId
		{
			get
			{
				return this.roomId_;
			}
			set
			{
				this.roomId_ = value;
			}
		}

		// Token: 0x170021FB RID: 8699
		// (get) Token: 0x06007863 RID: 30819 RVA: 0x00141978 File Offset: 0x0013FB78
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<MemberInfo> MemberInfo
		{
			get
			{
				return this.memberInfo_;
			}
		}

		// Token: 0x06007864 RID: 30820 RVA: 0x00141980 File Offset: 0x0013FB80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as LobbyJoinScRsp);
		}

		// Token: 0x06007865 RID: 30821 RVA: 0x00141990 File Offset: 0x0013FB90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(LobbyJoinScRsp other)
		{
			return other != null && (other == this || (this.FightGameMode == other.FightGameMode && this.Retcode == other.Retcode && this.RoomId == other.RoomId && this.memberInfo_.Equals(other.memberInfo_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06007866 RID: 30822 RVA: 0x00141A00 File Offset: 0x0013FC00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.FightGameMode != FightGameMode.None)
			{
				num ^= this.FightGameMode.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.RoomId != 0UL)
			{
				num ^= this.RoomId.GetHashCode();
			}
			num ^= this.memberInfo_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06007867 RID: 30823 RVA: 0x00141A85 File Offset: 0x0013FC85
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06007868 RID: 30824 RVA: 0x00141A8D File Offset: 0x0013FC8D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06007869 RID: 30825 RVA: 0x00141A98 File Offset: 0x0013FC98
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.FightGameMode != FightGameMode.None)
			{
				output.WriteRawTag(32);
				output.WriteEnum((int)this.FightGameMode);
			}
			if (this.RoomId != 0UL)
			{
				output.WriteRawTag(64);
				output.WriteUInt64(this.RoomId);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.Retcode);
			}
			this.memberInfo_.WriteTo(ref output, LobbyJoinScRsp._repeated_memberInfo_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600786A RID: 30826 RVA: 0x00141B20 File Offset: 0x0013FD20
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.FightGameMode != FightGameMode.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.FightGameMode);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.RoomId != 0UL)
			{
				num += 1 + CodedOutputStream.ComputeUInt64Size(this.RoomId);
			}
			num += this.memberInfo_.CalculateSize(LobbyJoinScRsp._repeated_memberInfo_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600786B RID: 30827 RVA: 0x00141BA4 File Offset: 0x0013FDA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(LobbyJoinScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.FightGameMode != FightGameMode.None)
			{
				this.FightGameMode = other.FightGameMode;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.RoomId != 0UL)
			{
				this.RoomId = other.RoomId;
			}
			this.memberInfo_.Add(other.memberInfo_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600786C RID: 30828 RVA: 0x00141C19 File Offset: 0x0013FE19
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600786D RID: 30829 RVA: 0x00141C24 File Offset: 0x0013FE24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 64U)
				{
					if (num == 32U)
					{
						this.FightGameMode = (FightGameMode)input.ReadEnum();
						continue;
					}
					if (num == 64U)
					{
						this.RoomId = input.ReadUInt64();
						continue;
					}
				}
				else
				{
					if (num == 88U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
					if (num == 106U)
					{
						this.memberInfo_.AddEntriesFrom(ref input, LobbyJoinScRsp._repeated_memberInfo_codec);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04002E0B RID: 11787
		private static readonly MessageParser<LobbyJoinScRsp> _parser = new MessageParser<LobbyJoinScRsp>(() => new LobbyJoinScRsp());

		// Token: 0x04002E0C RID: 11788
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002E0D RID: 11789
		public const int FightGameModeFieldNumber = 4;

		// Token: 0x04002E0E RID: 11790
		private FightGameMode fightGameMode_;

		// Token: 0x04002E0F RID: 11791
		public const int RetcodeFieldNumber = 11;

		// Token: 0x04002E10 RID: 11792
		private uint retcode_;

		// Token: 0x04002E11 RID: 11793
		public const int RoomIdFieldNumber = 8;

		// Token: 0x04002E12 RID: 11794
		private ulong roomId_;

		// Token: 0x04002E13 RID: 11795
		public const int MemberInfoFieldNumber = 13;

		// Token: 0x04002E14 RID: 11796
		private static readonly FieldCodec<MemberInfo> _repeated_memberInfo_codec = FieldCodec.ForMessage<MemberInfo>(106U, EggLink.DanhengServer.Proto.MemberInfo.Parser);

		// Token: 0x04002E15 RID: 11797
		private readonly RepeatedField<MemberInfo> memberInfo_ = new RepeatedField<MemberInfo>();
	}
}
